<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>微信用户管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {

		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/phy/tWeixinUser/">微信用户列表</a></li>
<%--		<shiro:hasPermission name="phy:tWeixinUser:edit"><li><a href="${ctx}/phy/tWeixinUser/form">微信用户添加</a></li></shiro:hasPermission>--%>
	</ul>
	<form:form id="searchForm" modelAttribute="tWeixinUser" action="${ctx}/phy/tWeixinUser/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>所属机构：</label>
				<form:input path="tenantName" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<shiro:hasPermission name="phy:sys:id"><th>id</th></shiro:hasPermission>
				<th>所属机构</th>
<%--				<th>openId</th>--%>
				<th>昵称</th>
				<th>性别</th>
<%--				<th>语言</th>--%>
				<th>头像</th>
				<th>城市名称</th>
				<th>国家</th>
				<th>省份</th>
				<th>创建时间</th>
<%--				<th>备注</th>--%>
<%--				<shiro:hasPermission name="phy:tWeixinUser:edit"><th>操作</th></shiro:hasPermission>--%>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="tWeixinUser">
			<tr>
				<shiro:hasPermission name="phy:sys:id"><td>${tWeixinUser.id}</td></shiro:hasPermission>
				<td>${tWeixinUser.tenant.tenantName}</td>
<%--				<td>--%>
<%--					${tWeixinUser.openid}--%>
<%--				</td>--%>
				<td>
					${tWeixinUser.nickname}
				</td>
				<td>
					${tWeixinUser.sex}
				</td>
<%--				<td>--%>
<%--					${tWeixinUser.language}--%>
<%--				</td>--%>
				<td>
					<img src="${tWeixinUser.headimgurl}"  height="50" width="50"/>
				</td>
				<td>
					${tWeixinUser.city}
				</td>
				<td>
					${tWeixinUser.country}
				</td>
				<td>
					${tWeixinUser.province}
				</td>
				<td>
					<fmt:formatDate value="${tWeixinUser.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
<%--				<td>--%>
<%--					${tWeixinUser.remarks}--%>
<%--				</td>--%>
<%--				<shiro:hasPermission name="phy:tWeixinUser:edit"><td>--%>
<%--    				<a href="${ctx}/phy/tWeixinUser/form?id=${tWeixinUser.id}">修改</a>--%>
<%--					<a href="${ctx}/phy/tWeixinUser/delete?id=${tWeixinUser.id}" onclick="return confirmx('确认要删除该微信用户吗？', this.href)">删除</a>--%>
<%--				</td></shiro:hasPermission>--%>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>
